#include<iostream>
#include<opencv2/imgcodecs.hpp>
#include<opencv2/highgui.hpp>
#include<opencv2/imgproc.hpp>
#include<opencv2/objdetect.hpp>
#include<string>
#include<vector>
#include"func.h"

using namespace std;
using namespace cv;


int main()
{
    VideoCapture cap("/home/zhanjiabin/桌面/task/fu/fu.mp4");
    Mat img,mask,mask2;

    while(1)
    {
        cap.read(img);//获取图像

        mask=erzhihua(img);//二值化

        mask2=fushibie(mask,img);//识别待激活区域和R标

        imshow("mask2",mask2);
        waitKey(20);
    }
    
    system("pause");
    return 0;
}

//180255255844255